package org.mics.organization.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 岗位
 * @author mics
 * @date 2023-10-9
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "增加/修改岗位请求")
public class PostRequest implements Serializable{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -8641300423452477123L;

	@Schema(description = "岗位id(新增不传修改传)")
	private String id;
	
	@Schema(description = "岗位名称",required = true)
	@NotBlank(message = "岗位名称不能为空")
  	@Size(max = 32,message = "岗位名称长度2-32位")
	private String name;
	
	@Schema(description = "部门id")
	private String departmentId;
}
